<?php

namespace App\Http\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;

/**
 * App\Http\Models\User
 *
 * @property int $id 账号
 * @property string|null $name 用户名
 * @property string|null $password 密码
 * @property int|null $role 权限
 * @method static \Illuminate\Database\Eloquent\Builder|User newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|User newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|User query()
 * @method static \Illuminate\Database\Eloquent\Builder|User whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|User whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|User wherePassword($value)
 * @method static \Illuminate\Database\Eloquent\Builder|User whereRole($value)
 * @mixin \Eloquent
 */
class User extends Authenticatable
{
	public $incrementing = false;
	protected $keyType = 'string';
	public $timestamps = false;
	protected $fillable = ['id', 'name', 'password', 'role'];
	//隐藏字段
	protected $hidden = ['password'];
}
